<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>form upload</title>
</head>

<body>
    <p>form方式上传提交</p>
    <!-- 包含上传文件的必要参数 enctyoe -->
    <form action="/ajaxTest/formUpload/" method="post" enctype="multipart/form-data">
        {% csrf_token %}
        <!-- 上传文件一定要给name参数 -->
        <input type="file" name="uploadfile">
        <input type="submit">
    </form>
</body>

</html>